<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    $data = \Illuminate\Support\Facades\DB::table('config')->where('cfgstatus', 1)->get();
    return view('index',['data'=>$data]);
});

Route::get('index', function () {
    return view('index');
});

Route::get('desc/{id}',[\App\Http\Controllers\UserController::class,'desc']);

Route::get('buy',[\App\Http\Controllers\UserController::class,'buy']);

Route::get('login/{uid}',[\App\Http\Controllers\UserController::class,'login']);
